<#include "_inc/_layout.html"/> 
<#macro script_import>
 <script src="${CPATH}/counter?cid=${content.id!}"></script>
</#macro> 
<#macro css_import>
</#macro>
<@layout>
<div class="col-sm-12">&nbsp;</div>

<div class="col-sm-8 article_detail">
	<div class="panel panel-default">
		<div class="panel-heading">
			<h3 class="panel-title"><a class="btn btn-link" href="${content.url}" target="_blank">${content.title}</a></h3>
		</div>
		<div class="panel-body">
	    	<div class="col-sm-12 pull-right">
	    		<div class="pull-left">&nbsp;&nbsp;&nbsp;</div>
	    		<div class="pull-left">${content.getTaxonomyAsUrl('feature', 'class="label label-default"')!'未分类'}</div>
		    	<div class="pull-left">&nbsp;&nbsp;&nbsp;</div>
				<div class="pull-right"><a class="label label-default" href="${content.linkTo}" target="_blank">来源：${content.remarks!''}</a></div>
				<div class="pull-right">&nbsp;&nbsp;&nbsp;</div>
				<div class="pull-right"><span class="label label-default">发布于：${content.created?string("yyyy-MM-dd HH:mm")!}</span></div>
			</div>
			<div class="col-sm-12 article_content">
				${content.text!}
			</div>
		</div>
	</div>
</div>
<div class="col-sm-4">
<#include "_inc/_content_box2.html"/> 
</div>
<@script_import />
<script type="text/javascript">
<@script />
</script>
<#macro script>
$(".article_detail .article_content img").addClass("img-thumbnail");
var imgs = $('.article_content img');
var imgLen =imgs.length;

for(var i = 0;i<imgLen;i++){
  var img = $(imgs[i]);
  var p = img.parent();
  if(p.text() == img.html()){
    p.addClass(img.attr("class"));
  }
}
</#macro>
</@layout>
